package com.way.Java多线程编程核心技术v2.chapter02_对象及变量的并发访问._2_2_synchronized同步语句块.内置类与同步;

/**
 * @author 魏彪
 */
public class Test01 {
    public static void main(String[] args) {
        OutClass.Inner inner = new OutClass.Inner();

        Thread t1 = new Thread(inner::method1, "A");

        Thread t2 = new Thread(inner::method2, "B");

        t1.start();
        t2.start();
    }
}
